package com.kongfanyu.springcloud.service;

import com.kongfanyu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Copyright (C), 2018-2020
 * FileName: StorageService
 * Author:   kongfanyu
 * Date:     2020/9/6 12:43
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping("/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Integer productId, @RequestParam("count") Integer count);
}
